package com.atguigu.guli.service.trade.feign.fallBack;

import com.atguigu.guli.service.result.R;
import com.atguigu.guli.service.result.ResultCodeEnum;
import com.atguigu.guli.service.trade.feign.EduCourseFeign;
import org.springframework.stereotype.Service;

@Service
public class EduCourseFallBack implements EduCourseFeign {
    @Override
    public R getCourseFromTrade(String courseId) {
        return R.setResult(ResultCodeEnum.ILLEGAL_CALLBACK_REQUEST_ERROR);
    }

    @Override
    public R update(String courserId) {
        return R.error();
    }
}
